define(function (require, exports, module) {
    var aw = require("ajaxwrapper");
    module.exports = {
        chgSeal: function (cParams, sCb) {
            aw.ajax({
                url: "api/productbatch/changeseal",
                data: cParams,
                success: sCb
            });
        },
        save: function(cParams,sCb){
            aw.ajax({
                url:"api/productbatch/savebatch",
                data: cParams,
                success: sCb
            });
        },
        del: function (pk, sCb) {
            aw.del("api/productbatch/" + pk + "/delete", sCb);
        },
        ifInUse: function (cParams, sCb) {
            aw.ajax({
                url: "api/productbatch/seekquote",
                data: cParams,
                success: sCb
            });

        },
        search: function(cParams,sCb){
            aw.ajax({
                url: "api/productbatch/search",
                data:cParams,
                success:sCb
            });
        }
    };
});